package com.hgkj.cloud.base.service;


import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantConsult;

import java.util.List;
import java.util.Map;


public interface TenantConsultService {
	int deleteByPrimaryKey(Long id);

	int insert(TenantConsult record);

	int insertSelective(TenantConsult record);

	TenantConsult selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(TenantConsult record);

	int updateByPrimaryKey(TenantConsult record);

	List<Map<String, Object>> listConsult(PageInfo pi, Map<String, Object> map);

	List<Map<String, Object>> listConsults(PageInfo pi, Map map);

	long getListConsultCount(Map<String, Object> map);

	List<Map<String, Object>> listConsultDetail(PageInfo pi, Map<String, Object> map) ;

	long getListConsultDetailCount(Map<String, Object> map) ;

	long getListByConsultIdCount(Map<String, Object> map);

	List<Long> getListConsultCounts(Map<String, Object> map);

	int addPlaytour(Map<String, Object> map);

	Map<String, Object> findPsyPlaytourBymap(Map<String, Object> map);

	List<Map<String, Object>> listConsultNew(PageInfo pi, Map<String, Object> map);

	long getListConsultCountNew(Map<String, Object> map);

	Map<String,Long> getUserConsultCount(Map<String, Object> map);

	Long listDeviceReportsByUserCount(Map<String, Object> map);

	List<Map<String,String>> getUserConsult(PageInfo pi,Map<String, Object> map);

	Long getUserConsultsCount(Map<String, Object> map);

    List<Map<String,Object>> listDeviceReportsByUser(Map<String, Object> map);
}
